﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal/Inicial.Master" AutoEventWireup="true" CodeBehind="AccesosSistema.aspx.cs" Inherits="Biciq.Web.UI.Seguridades.AccesosSistema" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Src="../Controles/WUCMensajes.ascx" TagName="WUCMensajes" TagPrefix="uc1" %>

<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTreeView" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style9
        {
        }
        .style10
        {
            height: 16px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="Accesos al Sistema" Width="100%" 
    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
    GroupBoxCaptionOffsetY="-22px" 
    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Font-Names="Century Gothic" Font-Size="Large" Height="23px" >
        <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
               
                <table class="style1">
                    <tr>
                        <td class="style9">
                            <asp:Label ID="Label1" runat="server" Text="Seleccione el Rol"></asp:Label>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="cmbRol" runat="server" Width="289px" DataValueField="id" 
                                        AutoPostBack="True" onselectedindexchanged="cmbRol_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            &nbsp;</td>
                        <td>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                            <dx:ASPxTreeView ID="ASPxTreeView1" runat="server" AllowCheckNodes="True" 
                                CheckNodesRecursive="True">
                                <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                    <NodeLoadingPanel Url="~/App_Themes/BlackGlass/Web/tvNodeLoading.gif">
                                    </NodeLoadingPanel>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                    CssPostfix="BlackGlass">
                                </Styles>
                            </dx:ASPxTreeView>
                             </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="cmbRol" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:ImageButton ID="btnGuardar" runat="server" ImageUrl="~/img/grabar.png" 
                                OnClick="btnGuardar_Click" ToolTip="Guardar" ValidationGroup="guardar" 
                                Width="32px" />
                            <asp:ImageButton ID="btnCancelar" runat="server" CausesValidation="False" 
                                ImageUrl="~/img/cancelar.png" OnClick="btnCancelar_Click" ToolTip="Salir" 
                                Width="32px" />
                        </td>
                    </tr>
                </table>
               
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
     <asp:UpdatePanel ID="UpdatePanelMensaje" runat="server">
        <ContentTemplate>
            <asp:LinkButton ID="LinkButtonMessage" runat="server"></asp:LinkButton>
           <asp:ModalPopupExtender ID="MessagePopup" runat="server" TargetControlID="LinkButtonMessage"
                BackgroundCssClass="modalBackground" PopupControlID="PanelMensaje" OkControlID="LinkButtonCloseMessage">
            </asp:ModalPopupExtender>


            <asp:Panel ID="PanelMensaje" runat="server" Width="75%" Style="display: none;">
                <asp:LinkButton ID="LinkButtonCloseMessage" runat="server" Font-Bold="True" Style="font-size: 7px;
                    color: #FFFFFF;" Text="i"></asp:LinkButton>
                <uc1:WUCMensajes ID="WUCMensaje" runat="server" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
